module.exports = {
    i18n: {
        locale: 'zh_CN'
    },

    syslog: {
        transports: [
            { type: 'console', options: { colorize: true } },
            { type: 'file', options: { filename: module.toAbsPath('syslog.log') } }
        ]
    },

    express: {
        viewEngine: 'swig',
        caseSensitiveRouting: true,
        compression: true,
        documentRoot: 'public',

        accessLogger: {
            transports: [
                { type: 'console', options: { colorize: true } },
                { type: 'file', options: { filename: module.toAbsPath('access.log') } }
            ]
        },

        errorLogger: {
            transports: [
                { type: 'console', options: { colorize: true } },
                { type: 'file', options: { filename: module.toAbsPath('error.log') } }
            ]
        },

        devErrorHandler: {
            dumpExceptions: true,
            showStack: true
        }
    },

    publish: {
        path: __dirname + '/../public'
    },

    http: {
        port: 3000
    }
};